package com.gxa.controller;

import com.gxa.common.R;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/msg")
public class MsgController {
    @RequestMapping("/loginUrl")
    @ResponseBody
    public R loginUrl(){
        R r = new R();
        r.setCode(500);
        r.setMsg("还未登录");
        return r;
    }
    @RequestMapping("/unauthorized")
    @ResponseBody
    public R unauthorized(){
        R r = new R();
        r.setCode(500);
        r.setMsg("你还没有访问权限");
        return r;
    }
}
